package gaml.java.serializer;

import gaml.java.ClassSerializerStore;
import gaml.java.ClassSerializer;
import gaml.java.SerializerFactory;


/**
 * create new instance of complex serializer for
 * needed generic type
 * @author shnireck
 *
 */
public class ComplexSerializerFactory implements SerializerFactory {
	ClassSerializerStore store = null;

	public ComplexSerializerFactory (ClassSerializerStore store) { this.store = store; }
	
	@Override
	public <T> ClassSerializer <T> create (Class <T> clazz) {
		return new ComplexSerializer <T> (store, clazz);
	}
}
